计算机与现代化 ›› 2013, Vol. 218 ›› Issue (10): 193-196,.doi: 10.3969/j.issn.1006-2475.2013.10.047

• 应用与开发 • 上一篇    下一篇

多线程技术在地铁自动售票机软件中的应用

夏叶锋1,徐骏善2   

  1. 1.南京理工大学机械工程学院机械制造及其自动化系,江苏南京210094;2.南京理工大学机械工程学院工业工程系,江苏南京210094
  • 收稿日期:2013-05-06 修回日期:1900-01-01 出版日期:2013-10-26 发布日期:2013-10-26

Application of Multi-threading Technology in Subway Ticket Vending Machine Software

XIA Ye-feng1, XU Jun-shan2   

  1. 1. Department of Mechanical Manufacturing and Automation, School of Mechnical Engineering,Nanjing University of Science & Technology, Nanjing 210094, China; 2. Department of Industrial Engineering, School of Mechnical Engineering, Nanjing University of Science & Technology, Nanjing 210094, China
  • Received:2013-05-06 Revised:1900-01-01 Online:2013-10-26 Published:2013-10-26

摘要: 在开发自动售票机软件系统中,针对系统资源利用不足和性能低下,提出多线程技术。结合自动售票机软件系统的架构和多线程技术的运行机制,用C++实现自动售票机软件系统中设备驱动层和通信层,并给出部分关键代码。该技术的运用使整个软件系统得到很大改善。目前,该软件系统已稳定运行在武汉地铁2号线。

关键词: 自动售检票系统, 分层架构, 同步, 临界区

Abstract: For the inadequate use of system resources and poor performance in the development of ticket vending machine software system, multithreading technology is proposed. Combing with the software system architecture and running mechanism of multi-threading technology, this paper achieves the device driver layer and communication layer of ticket vending machines software system by C++, and gives some key code. The performance of the whole software system has been greatly improved since this technology is used. Now, the software system has been stably operated in line two Wuhan metro.

Key words: automatic fare collection system, layer architecture, synchronization, critical section

中图分类号: